package com.sikaryofficial.backend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sikaryofficial.backend.domain.dto.req.information.ArticleEvaluateListReq;
import com.sikaryofficial.backend.domain.dto.req.information.ArticleEvaluateReq;
import com.sikaryofficial.backend.domain.dto.resp.information.ArticleEvaluateDTO;
import com.sikaryofficial.backend.domain.entity.ArticleEvaluate;

/**
 * 文章评价Service接口
 *
 * @author qinjinyuan
 * @date 2024-03-15
 */
public interface IArticleEvaluateService extends IService<ArticleEvaluate> {

    /**
     * 文章评价列表
     *
     * @param req
     * @return
     */
    IPage<ArticleEvaluateDTO> evaluateList(Page<ArticleEvaluateDTO> customerPage, ArticleEvaluateListReq req);

    /**
     * 文章回复保存
     *
     * @param req
     * @return
     */
    ArticleEvaluateDTO saveEvaluate(ArticleEvaluateReq req);
}
